Skip to content

fix(studio): the OWD overview's Save publishes each object pinned to the published row its load read - #37501

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-36962-owd-overview-pinned-publish
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-36962-owd-overview-pinned-publish

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #36962
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:Studio 的「记录共享基线」总览页里,两位管理员同时改同一个对象的共享默认值时,后保存的那位不再悄悄覆盖前一位,而是弹出冲突对话框(重新加载 / 确认覆盖 / 继续编辑);同一次保存里的其他对象各自照样核对,别人也改过的同样会问。
  • 为什么做:Studio 各编辑器已经按「加载时读到的已发布版本」防止互相覆盖,唯独这张总览页的保存被漏掉了;共享默认值关系到谁能看到哪些记录。
  • 出错会怎样:若判断有误,管理员可能在无人并发时也看到冲突对话框,选「重新加载」或「确认覆盖」即可继续;本改动只在前端,可直接回退,不改数据。
  • 要你做什么:无

What changes

PackageOwdOverviewPanel.tsx (the Studio OWD overview, one Save for every changed object):

  • The load records, per row, the published row it read (publishedPinOfLayers over the row's layers read, at the package the publish writes) into a useDraftSaveGuard held by the panel (recordPublished).
  • A row the package's published list does not hold, whose layers are not asked while its draft is in hand, is pinned If-None-Match: * (no published row of its name). A saved row whose layers read failed pins nothing.
  • The Save's per-row publish now passes the guard's pinned publish to publishSavedItem (its existing fourth parameter; studioSaveBar.tsx untouched). A publish over a row another writer published since is refused 409 METADATA_CONFLICT and the existing conflict dialog asks: reload, overwrite after a confirmation, or keep editing.
  • The panel keeps its own record of the pin each row's edit was made on, and sends that row's pin to the guard again immediately before the row's publish. A conflict answered "reload" clears every pin the guard holds, for every row; without the re-send the rows after it in the same pass, and a confirm of the controlled-by-parent prerequisite after a re-read that failed, would publish unpinned.
  • Partial save (objectstack#36511) is kept: a refused row is named and keeps its edit; the other rows carry on, each still published over the row its own load read, whatever an earlier row was answered, so another row a second admin changed is asked about too.
  • A row answered "reload" is read back once the pass ends, and the Save reads as declined. The draft the Save wrote is taken back first, unless a draft was pending before the Save (a copilot's): that draft is kept, now carrying the edit, and is shown as the row's value under the unpublished-draft mark while the live row is the other admin's; its next Save stays pinned to the version the conflict was raised on and is asked again (the guard's rule 9).
  • The table re-read after a partial save keeps each unsaved row pinned to the read its edit was made on (never the fresh read), so the next Save over a row that moved is asked again instead of slipping through.
  • The guard's own reload callback is a no-op: the Save that met the conflict re-reads the table itself once its pass ends, keeping the edits of the rows it did not save.

One changeset (@object-ui/app-shell patch).

Tests

New PackageOwdOverviewPanel.publishPinned-36962.test.tsx, against a server double whose publish door honours If-Match / If-None-Match and answers its 409 through the real MetadataClient error parser:

  • race: another admin publishes between load and Save, the Save is refused at its publish and the live-change conflict dialog opens; keep editing leaves the edit unsaved and takes the written draft back;
  • reload: the other admin's value is read back and the next Save is pinned to it;
  • overwrite: asked twice, then re-published pinned to the refusal's currentVersion;
  • two rows, one raced: the other goes live pinned to its own read; the kept edit stays pinned to its original read, so the next Save is asked again;
  • one editor: consecutive Saves pinned to the version the last one left, no self-conflict;
  • a draft-only row publishes If-None-Match: *;
  • control: a server that serves no overlayVersion gets an unpinned publish, as before;
  • reload in a pass of several rows: both rows raced, reload on the first, and the second is still refused and asked, its publish carrying its own load's If-Match;
  • the first row refused and kept, the second reloaded: the kept edit's next Save is still pinned to its own load and asked;
  • a row with a draft pending before the Save, raced, reload: the draft is kept carrying the edit, shown under the unpublished-draft mark, and the next Save is asked again, pinned to the version the conflict was raised on;
  • control: a draft-only row whose name another writer published since is refused on If-None-Match: *, not published over.

Ablation 1 (drop the pin from the publish call): 10 of 11 red, the unpinned control green. Ablation 2 (never keep a kept edit's original pin across the re-read): exactly the two kept-edit cases red. Ablation 3 (drop the re-send before each publish): exactly the reload-on-the-first-row case red. All restored, blob equals HEAD.

Acceptance notes

  • The overview's draft save still goes through client.save unguarded (no draft pin). It is a whole-document write over a read made a moment earlier, so a draft another writer wrote in between is replaced; and hasDraft is the load's reading, not the Save's. A concurrent change to the live sharingModel is still caught at the publish this PR pins. Both, with the panel's pin-record housekeeping, are carried by Studio OWD overview: the draft save is an unguarded whole-document write, and a draft that appears after page load is published live unseen #37515.
  • A Save in which the author chose "reload" for one row reports declined to the top bar even when other rows went live in the same pass (no "saved" toast); the rows that went live read back as saved on the page. Same answer the object page gives for a reloaded Save.

Verification

Read first, by risk:

  1. PackageOwdOverviewPanel.tsx, the recordPublished re-send just before publishSavedItem in doSave, then the load's pin loop (editPinsRef) and the reloadedNames branch.
  2. The new test file's "reload on the first row" and "a row with a draft pending before the Save" cases.

Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel.publishPinned-36962.test.tsx, expect 11 passed.

All readings at head dd92c2751 (objectstack-ai/objectstack), after building the app-shell dependency closure (turbo run build --filter='@object-ui/app-shell^...', lock VERDICT command-exit 0).

Tests: OWD panel suites
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel
 Test Files  12 passed (12)
      Tests  60 passed (60)
VERDICT command-exit 0

(new file alone, verbose) Test Files 1 passed (1) · Tests 11 passed (11)
Ablations (scripts/ablation-replace.mjs, restored to the HEAD blob f3046b31b11e each time)
1) anchor "publishPinned," deleted from the publishSavedItem call: anchor 1 -> 0
   Tests 10 failed | 1 passed (11)  (the unpinned control stays green)
2) "const kept = keep?.has(r.name) && editPinsRef.current.has(r.name);" -> "const kept = false;"
   Tests 2 failed | 9 passed (11)  (one row refused among two; first refused and kept, second reloaded)
3) the recordPublished re-send line before publishSavedItem deleted: anchor 1 -> 0
   Tests 1 failed | 10 passed (11)  (reload on the first row: the row after it is still asked)
each: restored, blob == HEAD, git diff HEAD empty
Typecheck and lint (app-shell)
pnpm --filter @object-ui/app-shell type-check   (tsc --noEmit, then tsc -p tsconfig.test.json)
VERDICT command-exit 0
eslint on the two touched source files: exit 0, 0 errors, 2 warnings; the same 2 react-hooks/set-state-in-effect warnings as on the origin/main copy of the panel (pre-existing)
pnpm --dir ui run check:new-line-citations: 0 new citation(s), exit 0
Derived gate families (dispatch-gates --commands, 38)
At e572eb289: 38 derived, 38 run, every one exit 0 (incl. pnpm --dir ui exec vitest run scripts/: Test Files 172 passed | 2 skipped)
At dd92c2751 (same three paths): re-run the changeset-reading families, each exit 0:
  check-adr-0087-registration --base origin/main, check-changeset-no-major, check-empty-changeset, check:nul-bytes, check-closing-keyword-parity

Generated by Claude Code

… published row its load read

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
…rite, partial save, control; changeset

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head e572eb2 · 2026-11-26T09:45Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: e572eb2895f54aaccb3583e5c81d2b5f74d5d698
Local-runs: none
Security-touching: yes

PR #37501 (card #36962), declaration face. Read: the card body and its 4 comments (os-dev report 7187713642 included), card #36511's body, the PR body, the net diff against main (3 files, +380/−9), and the 51 check-runs on this head (38 success, 13 skipped, 0 failed). Code outside the diff (DraftConflictDialog.tsx, studioSaveBar.tsx) was read, not reviewed. Nothing was built or run; every finding below is from reading, and M1 names the exact lines so it can be confirmed with one test.

① Derived judgments

What holds.

  • Single row, any of the three answers: right. The load takes each row's pin from the same /layers answer the row is drawn from (publishedPinOfRow), recordPublished hands it to the guard, and publishSavedItem's existing fourth parameter sends it. A publish over a row that moved since the load is refused 409 whether the other writer landed before or after the Save-time re-read, because the pin is the load's, never the re-read's. Another tab is another guard with its own pins, so it is asked the same way.
  • Keep editing and overwrite leave the guard's other pins alone, so the Studio 里人工修改改成「保存」「取消」,保存后这一项立刻生效;不再自动存草稿,不用整包发布 #36511 partial save is kept on those two answers: the other rows go on, each pinned to its own read.
  • editPinsRef across the end-of-pass re-read: right for a kept (refused) row. It keeps the pin its edit was made on, and a saved or reloaded row takes the fresh read.
  • No other caller of publishSavedItem changes: studioSaveBar.tsx is not in the diff, and the overloads are untouched.
  • load's new dependency recordPublished is an instance property of a guard held in state, so it is stable and adds no re-read.
  • publishNonce moves only on a package publish (StudioDesignSurface.tsx), not on emitMetadataRefresh, so the panel's own publishes do not re-run a plain load in the middle of a pass.
  • Draft-only row pinned If-None-Match: *: right, and fail-closed when both of its reads fail.
  • Unmount: the guard answers an open dialog "keep editing", nothing is sent, and the draft the Save wrote is taken back. Right.

M1 (must-fix) — after "reload" on one row, every later row of the same Save is published unpinned.

  • DraftVersionGuard.publish, on the reload answer, runs this.held.clear(); this.published.clear(). That clears the pins of every item the guard holds, which is correct for an editor whose whole buffer is then re-read.
  • This panel passes a no-op reload (keepPageOnReload) and goes on with the loop (reloadedNames.add(...); continue;). The only place the pins are sent again is load, which runs once, after the loop (reloadKeeping).
  • So for each row after the reloaded one, publish reads this.unconfirmed.get(key)?.pin ?? this.published.get(key) ?? null, gets null, and calls client.publish with no If-Match.
  • Reachable case: two admins each change Alpha and Beta in the overview. The second admin's Save is refused on Alpha and they choose "reload". Beta is then published over the first admin's Beta with no dialog. That is the card's defect (a silent last-writer-wins on an org-wide default), still present on a path this PR adds. Two admins working the same table is the card's own scenario, and "reload" is the dialog's first answer.
  • The PR body says the pass "continues with the other rows", and the changeset says each changed object is published "over the published row its load read". Neither is true on this path.
  • No test covers it: the two-row case answers "keep editing", where the guard clears nothing.
  • Smallest fix, inside the claimed file: send the row's pin from editPinsRef again immediately before its publishSavedItem call (or for every remaining row after a reloaded outcome). Add the case: two rows, both raced, reload on the first, and the second must be asked with its publish carrying its own load's If-Match.
  • The same root cause covers a narrower path: a reloadKeeping whose load fails leaves the guard cleared, and the prerequisite dialog's confirm (doSave(true)) is not gated on loadError. The fix above closes both.

S1 (should-fix) — the tests do not hold the two claims the pin logic is most likely to break on.

  • Ablation 1 (drop the fourth argument): 6 red is the right count for the right reasons. The three race cases, the two-row case, the one-editor case and the draft-only case each assert a header or the dialog; the control stays green.
  • Ablation 2 (kept = false) goes red for the right reason in the two-row case: the re-read would re-pin Alpha to the other admin's row and the second Save would publish.
  • But that case answers "keep editing", so it does not exercise the claim in the code comment and the PR body that the pins are "re-sent because a conflict's reload clears every pin the guard holds". No case has a reload in a pass of more than one row: not "A reloaded, B after it" (M1), and not "A refused and kept, B reloaded".
  • A row with a draft pending before the Save (hasDraft, the guard's rule 9, 'kept') has no conflict case in this panel.
  • The draft-only case has no refusal control (the name published by another writer since, so If-None-Match: * is refused).
  • Controls present: the unpinned server (no overlayVersion) and the one-editor case (no self-conflict). Those two are sound.

N1 (nit) — "A row whose author chose reload loses its edit and is read back" is not true for a row that had a draft before the Save. That draft is kept and now carries the edit. The re-read shows the edit as the row's value, not dirty, under the "unpublished draft" badge, while the live row is the other admin's. Nothing goes live, and the guard keeps the publish pinned to the refused version (rule 9), so this is wording plus the missing case in S1.

N2 (nit) — a saved row whose /layers read failed pins nothing, so its Save publishes unpinned. This is the convention #36726 set (readPublishedPin: a read that fails says nothing about the row). It is fail-open on a transient read error for an access-control setting, and it is named here so the choice is on record. No change asked in this PR.

N3 (nit) — editPinsRef housekeeping. Entries are never removed and are keyed by name alone, not by package. Loads are not sequenced: a plain load (a package publish moving publishNonce) that finishes before an overlapping load(keep) writes its fresh pin into the ref, and the kept edit is then pinned to that fresh read. After a publish lands, the ref holds the old pin until the next load succeeds; a failed load there gives a spurious conflict later, which is the safe direction.

② Semver level

  • Clause-②: no is right. The diff adds no export and changes no prop, schema or accept set: OwdRow.published, publishedPinOfRow and keepPageOnReload are file-local.
  • Metadata-protocol: none is right: nothing a metadata author can write changes.
  • One changeset, @object-ui/app-shell patch: the right level for a bug fix. Both declaration lines are line-initial in the PR body and in the changeset. Check Changeset is green on this head.
  • The changeset prose overstates the fix on the M1 path and should be read again once M1 is fixed.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • security_findings: "none": not adopted as written. The diff is the client half of a concurrency guard on org-wide sharing defaults, which is access control, and M1 is a finding of that kind. The card carries no security label; this record's line above is set for that reason.
  • S2 (should-fix) — the unguarded draft client.save needs a carrier card; the Acceptance note is not enough. Out-of-scope finding "noted, not filed". Judged in three parts:
    • A concurrent change to the LIVE row's sharingModel is not lost through the draft write. Whichever publish lands second carries a pin the first one moved, so one of the two admins is asked. The note is right about that, and it is why this does not block the PR.
    • The note's sentence "the draft write itself drops no concurrent change" is not established. The draft is a whole document written with no If-Match or If-None-Match, over a read made a moment earlier, so a draft written by a copilot or another writer between that read and the write is replaced entirely.
    • hasDraft is the load's reading, not the Save's. A draft that appears after the page loaded is picked up by the Save-time re-read and published live with the row, without the "unpublished draft" badge ever having been shown. On a refusal, keep-editing or reload it is reset as if this Save had written it. The published pin catches neither, because the live row did not move.
    • Weight: the first is a lost draft, not a lost live value. The second can put content the admin never saw live under their Save, on an object whose sharing they are setting. Both predate this PR and sit outside the card's Done-when. The guard already has the mechanism (readDraftForSave, guard.save) the other editors use. File the card, graded as a concurrency gap on an access-control surface, rather than leave it as a PR note.
  • Deviation, the Save reports declined when the author reloaded one row and others went live: accepted. It matches the object page, and the rows that went live read back as saved.
  • Deviation, commit trailers in the repo's model-free form after the pre-push gate refused the other form: accepted; the repo's gate governs.
  • File surface: the three files are the ones the claim named. studioSaveBar.tsx is untouched, as the claim required.
  • SQL push-down: not applicable. The diff is client-side UI; it adds no query, id materialisation or join.
  • Check-runs: 38 success, 13 skipped (opt-in harnesses, queue verdicts, core and docs jobs the path filter leaves out), 0 failed. Test UI and its nine planned shards are green; which shard ran the new file was not read from logs.
  • The PR is still a draft.

Implemented-by: claude/issue-36962-owd-overview-pinned-publish
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: e572eb2895f54aaccb3583e5c81d2b5f74d5d698
REWORK — L1, seat repo:objectstack#5. Contract record 7188573161 reads FAIL on M1. The single-row race, reload, overwrite and keep-editing paths are right, the #36511 partial save is kept, and no other publishSavedItem caller changes.

  1. Shape: open draft against main, 3 files (+380/−9), Fixes #36962, Clause-②: no, Metadata-protocol: none, @object-ui/app-shell patch. Not governed. 38 success, 13 expected skips, 0 failed. Security-touching: yes: the sharing model is an access-control setting.
  2. Premise: publish sends the pinned, saved revision, so a concurrent change to a row's live sharingModel is not silently overwritten.
  3. Owed before ACCEPT:
    • M1. After the author answers "reload" on one row, every later row of the same Save is published unpinned. DraftVersionGuard.publish clears all pins on reload (this.published.clear()). The panel's loop continues, and the pins are re-sent only by load after the loop.
      • Concrete case: two admins both change Alpha and Beta. The second gets the dialog on Alpha and picks reload, and Beta's live OWD is silently overwritten.
      • Fix, inside the claimed file: re-send the row's pin from editPinsRef right before its publishSavedItem call. Add a test with two rows both raced and reload chosen on the first.
    • S1. Tests for the claims most likely to break:
      • a reload in a multi-row pass (ablation 2's two-row case answers "keep editing", which clears nothing);
      • a conflict case for a row with a draft pending before the Save;
      • a refusal control for the draft-only If-None-Match: * row.
    • S2. Card for the unguarded draft client.save, under Studio OWD overview Save still publishes unpinned, so two admins saving the same object's sharing default, the later save silently overwrites the earlier #36962. The publish pin catches a lost update of the live value, so this does not block. But the whole-document draft write can replace a draft written in the read-to-save window. And because hasDraft is the load's reading, a draft that appears after page load is published live unseen, or reset on refusal. Pre-existing, outside the card's Done-when. Correct the Acceptance note's "drops no concurrent change".
    • Narrow the changeset prose to what is fixed once M1 lands. The same reviewer reads the delta.
  4. Accepted deviations (nits, record only):
  5. Out of scope and where it went: S2 and N3 go to the area-filed card under Studio OWD overview Save still publishes unpinned, so two admins saving the same object's sharing default, the later save silently overwrites the earlier #36962. The security label goes on the PR at ACCEPT.
  6. Landing terms: ungoverned, default tier. Owed: M1 fixed with its test, S1 tests, the S2 card, required contexts green, a same-head delta PASS and an ACCEPT. Then o5-P lands it with --land.

…n load before its publish, so a reload on one row leaves the rest pinned

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
@github-actions github-actions Bot added size/l and removed size/m labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: dd92c2751f117ad0c8af1f552dd8d41b8552fc81
Local-runs: none
Security-touching: yes

PR #37501 (card #36962), declaration face, delta round after the FAIL record 7188573161 on e572eb28. This is a whole record for this head. Read: the card and its 5 comments (os-dev reports 7187713642 and 7189018445), the PR thread (the earlier record and the seat's REWORK 7188587712), carrier card #37515, the PR body, the net diff against main (3 files, +497/−9), the one-commit delta from e572eb28 (+126/−9, the same three files), and the check-runs on this head as they stood when read. Nothing was built or run; the ablation counts are the dev's, judged by reading.

The gates have not concluded on this head. Of 56 check-runs: 18 success, 17 skipped, 20 in progress, 1 cancelled, 0 failed. The verdict below is on the contract and the diff. It does not stand in for the gate verdicts, and landing waits on them (see ③).

① Derived judgments

M1 — closed. After "reload" on one row, later rows of the same Save were published unpinned.

  • The fix is one line in doSave, immediately before each row's publishSavedItem call: recordPublished('object', s.row.name, packageId, editPinsRef.current.get(s.row.name) ?? null).
  • Read against DraftVersionGuard: a reload on row A clears published; row B's re-send puts B's own load pin back, so B's publish carries If-Match and is refused and asked. Right.
  • Every changed row has an entry in editPinsRef, because load writes one for every row it builds, so the ?? null arm is reached only for a row whose pin was already nothing (N2).
  • The re-send does not break the guard's rule 9. For a row held as unconfirmed, recordPublished only updates fresh, and publish still reads the unconfirmed pin first. The new pending-draft case holds this.
  • The narrower path (the prerequisite confirm after a re-read that failed) goes through the same line, so it is closed too. It has no test of its own; that is recorded, not asked.
  • No other pin path changes: keep-editing and overwrite are as judged before, and recordPublished is a stable instance property, so the added doSave dependency causes no re-creation.

S1 — closed. The four cases asked for are present and each asserts the right thing.

  • Reload on the first of two raced rows: the second dialog names b_beta, the publishes read alpha0 then beta0, and Beta's live value is unchanged. Deleting the re-send removes the second dialog, so the dev's ablation 3 (1 red) is red for the right reason.
  • First row kept, second reloaded: Alpha's next Save is pinned alpha0 and asked. It stays green under ablation 3 because the end-of-pass load(keep) also re-records kept pins; ablation 2 (kept = false) is what turns it red. The dev says this plainly, and it is correct.
  • A row with a draft pending before the Save, raced, reloaded: no reset, the draft carries the edit, the row shows it under the unpublished-draft mark, and the next Save is sent pinned to alpha0 and asked.
  • Draft-only refusal control: the name published by another writer since, the publish carries If-None-Match: *, is refused, and nothing goes live.
  • Ablation 1 (drop the fourth argument) at 10 red of 11 is the right count: every case but the unpinned control asserts a header or a dialog.

N1 — closed. The code comment, the PR body and the changeset now say that a reloaded row with a draft pending before the Save keeps that draft, carrying the edit, and is asked again on its next Save.

N2 — open, accepted, on record. A saved row whose /layers read failed pins nothing and publishes unpinned. It follows the #36726 convention and no change is asked here. It is not in #37515's text; if the maintainers want it tracked it needs a line there.

N3 — carried by #37515. editPinsRef is never pruned, is keyed by name alone, and loads are not sequenced. One addition from this delta, same card: after a row's publish lands, the ref still holds the old pin until the next load succeeds, and the new re-send would put that old pin over the guard's receipt pin. It is reachable only when the end-of-pass load fails and the prerequisite confirm runs, and the result is a spurious conflict on the author's own change, which is the safe direction.

What held before still holds. Single-row race, reload, overwrite and keep-editing; the #36511 partial save; no change for any other publishSavedItem caller (studioSaveBar.tsx is not in the diff); unmount answers "keep editing".

② Semver level

  • Clause-②: no and Metadata-protocol: none are right: no export, prop, schema or accept set changes, and nothing a metadata author can write changes.
  • One changeset, @object-ui/app-shell patch: right for a bug fix. Both declaration lines are line-initial in the PR body and the changeset.
  • The changeset prose now matches the code, including the multi-row and pending-draft behaviour.
  • Check Changeset: success on this head (twice); one earlier run was cancelled when a body edit started a newer one.

③ Boundary flags

  • open_questions: empty in both reports.
  • security_findings: the first report said "none", the second says "withheld". Neither is adopted. The diff guards an access-control setting, this record's line stays as set above, and the PR does not yet carry the security label the seat's REWORK said goes on at ACCEPT.
  • S2 — carried by Studio OWD overview: the draft save is an unguarded whole-document write, and a draft that appears after page load is published live unseen #37515. The unguarded whole-document draft client.save and the load-time hasDraft. The card states both cases, the done-when (the guard's readDraftForSave and guard.save, a race test per case, a control and an ablation) and its parent Studio OWD overview Save still publishes unpinned, so two admins saving the same object's sharing default, the later save silently overwrites the earlier #36962. The PR's Acceptance note no longer claims the draft write drops no concurrent change and points at the card. The card had no priority or security label when read; grading is triage's.
  • Deviation, the Save reports declined after a reload when other rows went live: accepted, as before.
  • Deviation, the PR body edited twice through the relay after creation: the report attributes it to the coordinator's instruction, which is outside what this review reads. The PR-body guards check is green on the edited body.
  • Deviation, only the changeset-reading gate families re-run locally at this head: accepted, on the condition below. The delta touches the same three paths.
  • File surface: the same three files the claim named.
  • SQL push-down: not applicable; client-side UI, no query, id materialisation or join.
  • Check-runs, open landing condition. In progress when read: Test UI shards 1 to 9, Lint UI, Type Check UI, Build & E2E UI, and eight Lint and Type Check lanes. The Test UI shards are the only gate that runs the new file, so the 11 cases are unmeasured by CI on this head. This is not a finding against the diff, but this record must not be read as a green head: any failed run reopens the verdict.
  • The PR is still a draft.

Implemented-by: claude/issue-36962-owd-overview-pinned-publish
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: dd92c2751f117ad0c8af1f552dd8d41b8552fc81
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, Fixes #36962, Clause-②: no, Metadata-protocol: none, @object-ui/app-shell patch. Not governed. Security-touching: yes (sharing model).
  2. Premise: publish sends each row's pinned, saved revision. After a reload on one row, every later row of the same Save still carries its own If-Match, because its pin is re-sent from editPinsRef right before publishSavedItem.
  3. Gates:
    • Delta record 7189094603 (same reviewer, verified on the transcript) reads PASS. M1 is closed and pinned by case (a), whose ablation 3 goes red.
    • S1 is closed by cases (a) to (d).
    • Checks at dd92c2751f: 41 success · 17 expected skip · 0 failed. The one cancelled Check Changeset run was superseded by two green runs, and Test UI ran the new file.
  4. Accepted deviations:
  5. Out of scope and where it went: Studio OWD overview: the draft save is an unguarded whole-document write, and a draft that appears after page load is published live unseen #37515 under Studio OWD overview Save still publishes unpinned, so two admins saving the same object's sharing default, the later save silently overwrites the earlier #36962. The security label goes on.
  6. Landing terms: ungoverned, default tier. Same-head delta PASS plus this ACCEPT. Area o5-P lands it with --land.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Security label: Security-touching: yes per contract record 7189094603 (publish of the org-wide sharing model, an access-control setting).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS

Landing (zone o5-P) · 2026-11-26T10:37Z · ACCEPT 7189568354 at dd92c2751f117ad0c8af1f552dd8d41b8552fc81

Probe Reading
check-governed-merges.mjs --pr 37501 NOT governed; +497/-9 ≤ 3000
landing-k.mjs --pr 37501 CAN'T ANSWER (UI-only PR: no Test Core shard ran, so no PRBASE printed). Measured by hand: merge-base eaa9e5447e → origin/main, K = 10 first-parent commits < 15; the PR touches no translations/ or locales/ file, so it is not a label PR

Security-touching: yes (org-wide sharing default) — security label added with this stroke, per the seat's REWORK 7188587712.
State: ready + auto-merge armed; #36962 closes on merge (Fixes).

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45803158911 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/expression-conformance.test.ts > ADR-0058 D7 — expression surface conformance ledger > is a sound conformance ledger + ratchet (ADR-0060 checkLedger)
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: UNCLASSIFIED surface — add a ledger row (ADR-0060): data/field.zod.ts:FieldSchema.uiReadonlyWhen: expected [ Array(1) ] to deeply equal []
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 6 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS

Re-arm (zone o5-P) · 2026-11-26T11:00Z · same head dd92c2751f117ad0c8af1f552dd8d41b8552fc81, ACCEPT 7189568354 stands.
Queue build 45803158911 failed on Dogfood Regression Gate (3/3): expression-conformance.test.ts — UNCLASSIFIED surface … data/field.zod.ts:FieldSchema.uiReadonlyWhen. That key is not on main and not in this PR (UI-only, 3 files); it came from #37436, which sat ahead of this PR in the speculative stack (queue base chain e22a8a6d8 #37436 → c9a456fcd #37474 → 25372466c #37489) and has since left the queue (auto-merge off). Signature anchor: #37525. Re-armed once; no code change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants